Technology Tales

Adventures & experiences in contemporary technology

Running cron jobs using the www-data system account

22nd December 2018

When you set up your own web server or use a private server (virtual or physical), you will find that web servers run using the www-data account. That means that website files need to be accessible to that system account if not owned by it. The latter is mandatory if you you want WordPress to be able to update itself with needing FTP details.

It also means that you probably need scheduled jobs to be executed using the privileges possess by the www-data account. For instance, I use WP-CLI to automate spam removal and updates to plugins, themes and WordPress itself. Spam removal can be done without the www-data account but the updates need file access and cannot be completed without this. Therefore, I got interested in setting up cron jobs to run under that account and the following command helps to address this:

sudo -u www-data crontab -e

For that to work, your own account needs to be listed in /etc/sudoers or be assigned to the sudo group in /etc/group. If it is either of those, then entering your own password will open the cron file for www-data and it can be edited as for any other account. Closing and saving the session will update cron with the new job details.

In fact, the same approach can be taken for a variety of commands where files only can be access using www-data. This includes copying, pasting and deleting files as well as executing WP-CLI commands. The latter issues a striking message if you run a command using the root account, a pervasive temptation given what it allows. Any alternative to the latter has to be better from a security standpoint.

ASCII Codes

24th August 2015

Having found myself looking for this from time to time, here is a table of ASCII characters and their representation in decimal, hexadecimal and octal forms together with the corresponding HTML entities. The first on the list are various non-printing characters and I have found myself using the TAB one in programming quiet often over the years. Currently, only the core ASCII characters appear but those from the extended set may be added later.

DecimalHexadecimalOctalCharacterHTML
00000NUL (null)
11001SOH (start of heading)
22002STX (start of text)
33003ETX (end of text)
44004ETX (end of transmission)
55005ENQ (enquiry)
66006ACK (acknowledge)
77007BEL (bell)
88010BS (backspace)
99011TAB (horizontal tab)
10A012LF (NL line feed, newline)
11B013VT (vertical tab)
12C014FF (NP form feed, new page)
13D015CR (carriage return)
14E016SO (shift out)
15F017SI (shift in)
1610020DLE (data link escape)
1711021DC1 (device control 1)
1812022DC2 (device control 2)
1913023DC3 (device control 3)
2014024DC4 (device control 4)
2115025NAK (negative acknowledge)
2216026SYN (synchronous idle)
2317027ETB (end of transmission block)
2418030CAN (cancel)
2519031EM (end of medium)
261A032SUB (substitution)
271B033ESC (escape)
281C034FS (file separator)
291D035GS (group separator)
301E036RS (record separator)
311F037US (unit separator)
3220040space 
3321041!!
3422042"
3523043##
3624044$$
3725045%%
3826046&&
3927047'
4028050((
4129051))
422A052**
432B053++
442C054,,
452D055---
462E056..
472F057//
483006000
493106111
503206222
513306333
523406444
533506555
543606666
553706777
563807088
573907199
583A072::
593B073;&#59;
603C074<&#60;
613D075=&#61;
623E076>&#62;
633F077?&#63;
6440100@&#64;
6541101A&#65;
6642102B&#66;
6743103C&#67;
6844104D&#68;
6945105E&#69;
7046106F&#70;
7147107G&#71;
7248110H&#72;
7349111I&#73;
744A112J&#74;
754B113K&#75;
764C114L&#76;
774D115M&#77;
784E116N&#78;
794F117O&#79;
8050120P&#80;
8151121Q&#81;
8252122R&#82;
8353123S&#83;
8454124T&#84;
8555125U&#85;
8656126V&#86;
8757127W&#87;
8858130X&#88;
8959131Y&#89;
905A132Z&#90;
915B133[&#91;
925C134\&#92;
935D135]&#93;
945E136^&#94;
955F137 _&#95;
9660140`&#96;
9761141a&#97;
9862142b&#98;
9963143c&#99;
10064144d&#100;
10165145e&#101;
10266146f&#102;
10367147g&#103;
10468150h&#104;
10569151i&#105;
1066A152j&#106;
1076B153k&#107;
1086C154l&#108;
1096D155m&#109;
1106E156n&#110;
1116F157o&#111;
11270160p&#112;
11371161q&#113;
11472162r&#114;
11573163s&#115;
11674164t&#116;
11775165u&#117;
11876166v&#118;
11977167w&#119;
12078170x&#120;
12179171y&#121;
1227A172z&#122;
1237B173{&#123;
1247C174|&#124;
1257D175}&#125;
1267E176~&#126;
1277F177DEL&#127;

Snippets

15th September 2012

There are times when I feel the need to share some snippets with a longer lifespan than a tweet. This is a place for those and some yet may even turn into longer articles themselves. That already has happened for one of them, so there is something of a digital scrapbook in operation here.

13:08 January 8, 2024

Now that ownCloud has been acquired by Kiteworks, there is some uncertainty about what happens next. So far, there is an offer for ownCloud and Nextcloud users to move to Kiteworks’ proprietary platform. Nextcloud itself has been busy making use of the uncertainty to promote their own product line.

19:15 November 19, 2023

The open-source section of the website got a lot of tweaking in the last few weeks. The recipient of the attention was the operating system subsection. That got a full reorganisation with all the listings seeing new entries too. The desktop software also got a bit of attention, and other areas could get altered yet.

11:35 January 20, 2023

Recently, I have been having trouble with Nvidia drivers following a kernel update in Linux Mint (21.1 is the version that I am using). The kernel version has been rolled back from 5.19.x to 5.15.x, and I installed an old AMD graphics card as well. Things still are not perfect, though, so I will be looking out for a way to make things smoother. For now, all is good enough for the moment.

14:28 July 1, 2022

Here are some web apps for video recording for work purposes:

Loom

CloudApp

10:30 February 12, 2022

Google Analytics appears to be losing favour in the EU, if Matomo is to be believed. First, Austria outlawed its usage and no France follows suit. This naturally suits Matomo, a self-hosted open-source alternative for collecting website metrics, so it should not be any surprise that they are forthcoming with these details.

16:20 October 9, 2021

Here is the sequence of commands to use when upgrading from OpenMediaVault 4.x to 5.x. All need to be executed with elevated access privileges:

wget -O - https://github.com/OpenMediaVault-Plugin-Developers/installScript/raw/master/upgrade4to5 | sudo bash

reboot

Once your system has restarted and you have logged in again, then you execute these:

apt-get purge openmediavault-omvextrasorg resolvconf

wget -O - https://github.com/OpenMediaVault-Plugin-Developers/packages/raw/master/install | bash

apt-get update

apt-get dist-upgrade

omv-salt deploy run nginx

omv-salt deploy run phpfpm

apt-get install usrmerge

omv-confdbadm migrate conf 5.0.0

15:19 October 9, 2021

Here are some North American online emporia fro buying computers, their components or peripherals:

Best Buy

Micro Center

Newegg

PC-Canada

Tech-America

09:06 September 24, 2021

Here are boilerplate commands for banning and unbanning IP addresses using Fail2ban:

fail2ban-client set <JAIL> banip <IP>
fail2ban-client set <JAIL> unbanip <IP>

13:09 July 27, 2020

If you ever need to install Linux kernel headers on an openSUSE instance in order to install VirtualBox Guest Additions, the following command should be executed in order to do the needful:

sudo zypper in kernel-source

10:37 February 5, 2017

Here is a possible way of resetting the CSS definition for a HTML element, class or ID:

#reset-this-parent {
all: initial;
* {
all: unset;
}
}

Browser support for the above may vary though.

10:39 November 23, 2016

After seeing messages like “The authenticity of host ‘hostname’ can’t be established” during ssh connections, I decided to investigate more and came up with the following solution:

sudo chown -v $USER ~/.ssh/known_hosts

My known_hosts file had gained root ownership so i could not write to it so changing the ownership to that of my own user account sorted the problem. An alternative could be to change the group assignment using chgrp and setting permissions using chmod but what I did sufficed for my needs.

06:30 November 23, 2016

When I ran into trouble with accessing my own websites using my broadband, I found that the solution was to change DNS Lookup Service to what Google offers. This was done on the router side and the IP addresses used were 8.8.8.8 and 8.8.8.4.

22:33 June 4, 2016

Here’s a way to convert DNG files to JPEG ones:

find -type f | grep DNG | parallel mogrify -format jpg {}

10:51 September 16, 2015

Here is a way to recursively delete folders and their contents in PowerShell:

Remove-Item .\foldertodelete -Force -Recurse

The Force switch silences any messages that otherwise would appear and the Recurse switch is what gets directories removed.

23:38 August 18, 2015

Thomson Reuters is changing over Open Calais at the end of August.

11:05 July 29, 2015

Motorola now selling phones direct to the public through its own store. Customisation options are available for more expensive models like Moto X and Nexus 6 too.

10:18 April 12, 2015

Devuan (pronounced like dev-one) is a fork of Debian that does not use systemd as Debian, like so many other distros, is doing. Part of the name must come from a collective calling itself Veteran UNIX Admin (VUA). There is no actual release just but one is intended for around the same time as Debian 8.0 gets released and donations are being solicted via the website.

18:51 February 20, 2015

Here is a handy way to get PowerShell to show files larger than a certain size:

get-childitem | where-object {$_.length -gt 10000}
|ft fullname, length -auto

19:40 December 1, 2014

When a VirtualBox upgrade broke the networking on a Windows 8.1, it was time to look at System Restore to see what it would do. It reverted version 4.3.20 to 4.3.15 and the network disconnection stopped. For now, I will remain with that older version after the misstep with the latest one. Sometimes it is best to stick with what is known to work.

20:38 October 30, 2014

With my deciding to try doing about my waistline during the summer (a bike got put on a trainer and around 30 minutes is spent on it most evenings while I also catch up some reading; now, I feel fitter and incursions into the countryside have an added air of confidence about them), an interest in fitness monitors has developed and the Pulse Ox from Withings has taken my eye due its being price of around £100. That makes it less than alternatives and it isn’t the only health gadget that the company does either with there being a blood pressure monitor in its range too. The Pulse Ox monitors such things as heart rate, activity such as walking and running, sleeping and weight too. It should work with your smartphone as well, which is a bonus. It is one of several like it with Samsung and Apple going in for phone apps and Microsoft releasing their Band device as well. This appears to be a growing area where I never expected to see mainstream technology companies having a role for themselves.

12:44 October 30, 2014

Ergotech now have useful desktop stands for tablet computers. There is one for a full size iPad and another for any other type of tablet. A standalone one on wheels also is available though I cannot see myself ever needing such an item.

20:24 October 20, 2014

Here are some more specialist information sources with search facilities:

Infoplease

ScienceDirect

18:53 October 7, 2014

Here is the test for the “Shellshock” vulnerability in the bash shell:

env x='() { :;}; echo vulnerable’ bash -c “echo this is a test”

It should not return the following:

vulnerable
this is a test

This would be acceptable:

bash: warning: x: ignoring function definition attempt
bash: error importing function definition for `x’
this is a test

Also, just having this might be fine too:

this is a test

In case you need it, Redhat has more information on the bug that caused scare stories everywhere. Now, it is over to system administrators everywhere to do their bit now that bash has been patched.

21:36 August 24, 2014

Sometimes you need to create more than one directory level in a hierarchy at once and mkdir has the -p option for this purpose. That gets it to create any missing levels in a folder path and avoids warnings that would be issued otherwise.

16:18 August 21, 2014

Debian 8 is under development and has its first beta ready for download. XFCE is now the default desktop environment though it remains possible to install GNOME and GNOME Shell too. In fact, I successfully have given that a go in a VirtualBox installation and will keeping an eye on development so long as no system meltdowns occur. The version of the X Window system already is incompatible with VirtualBox 4.3.14 so we need to await a new version of the virtualisation software before we get access to advanced functions like full window desktop expansion. What we have at the moment works well enough to keep eye on development so we can wait for that full support.

18:31 August 6, 2014

Perfect Resize from onOne Software caught my eye for scaling up images after seeing it mentioned in a Outdoor Photography review of Avanquest PhotoZoom Professional. With a library of 6″ x 4″ prints, I am limited in how large I can make scanned images without they looking blurred and pixelated so that’s why my interest was aroused. There may be a free moment spent seeing what it might do in that situation yet.

16:24 August 2, 2014

Nvidia has a useful page on the difference between DVI-D and DVI-I. It came in handy when transitioning from VGA to DVI on my home PC’s. That made what appears on my Iiyama screen much sharper and allowed me to rid myself of a suspect VGA cable too.

21:42 June 11, 2014

Here are some interesting articles about EFI and UEFI that I uncovered during a recent episode of setting up dual booting of Windows 8.1 and Linux Mint 17 on a PC with EFI:

UEFI

UEFI Dual-Boot -- Ubuntu 12.04.3 + Windows 8.1 (One GPT HDD)

Managing EFI Boot Loaders for Linux

The rEFInd Boot Manager: Getting rEFInd

11:53 May 3, 2014

In the U.K., BT allows you to divert your phone calls for a fee and I have made good use of it over the past year. The service is called Call Diversion and Eircom, Ireland’s counterpart to BT, offers Call Forwarding in Éire. Both are handy because redirecting a call to a mobile phone means that you know you are not missing any calls and that there is nothing lurking on an answering machine when you do get to your home or office. Landline telephony may seem less exciting these days than other forms of communication yet it still has its place and I would not get any nasty surprises along the path of life either. If only I had started doing this kind of thing earlier than I did…

20:12 April 4, 2014

Here’s a useful article about the ever useful locate command. Whether it is FreeBSD or Ubuntu that you are running, this article has a use and that especially when the locate database needs updating with the updatedb command.

20:54 March 12, 2014

A recent website redesign was well helped by modern.IE‘s collection of virtual machine appliances containing different versions of Windows and Internet Explorer. Depending on the host operating system that you are using, you have different options. For Linux, it is VirtualBox only while Windows gains VMware and Virtual PC too. It is a matter of just picking out what suits your situation from dropdown lists.

The first one that I picked was Vista with IE 7 and it was an interface that I had not seen for a while. For all the criticism, the operating system did work well though I wonder if it arrived before the computer hardware that it really needed in order to run smoothly. The dark theme cannot have helped its cause either, especially when compared with the much brighter Windows 7 or Windows 8.x. A Windows XP appliance with IE 6 was grabbed before it gets yanked and support for the elderly OS does finish in April. IE 6 probably is on its last legs so I probably can ignore it now but IE 7 might live longer yet. Window 7 appliances with IE 9 and IE 10 also were downloaded and confirmed that all was well in recent versions of IE when it came to the website. The Vista virtual machine allowed me to ensure that all looks acceptable on IE 7 too. The VM’s themselves contain evaluation versions of enterprise variants of Windows and have a limited lifespan though it is little trouble to reimport an appliance again to rest the clock if so required. In most cases, you extend the evaluation periods too through re-arming and there only are so many times that you can do that anyway. With Windows 8.x, it isn’t even a possibility anyway.

22:05 March 9, 2014

Today, I found an interesting article on CSS media queries and put it to some use for a website redesign that has been keeping me busy over the weekend. Twitter’s Bootstrap came in handy for this too. Now, it’s on to ridding the new design of any rough edges that remain in there. That can be an ongoing task and the site is here if you fancy a look to see what my efforts have produced.

16:20 February 26, 2014

Adding a new Zalman ZM450-GS power supply did little to sort the buzzing in my speakers but it has made the PC where it was installed so much quieter; a much larger fan spinning slower helps while still moving the required amount of air. It is 450W too and I am wondering if my main PC would benefit from a similar upgrade. That may be quieter than the other one was but the case was not a deluxe model so the change should do no harm. As for the speakers, moving them was the only way to get rid of the buzzing. Looking back on this now, it seems that one of them was far too close to a PC.

20:33 February 15, 2014

Currently, the spare PC appears to be causing buzzing on my main PC speakers and with my landline telephone when it is placed right under these.  Removing it helps to cut it down but I fancy having a better fix and am wondering if a new power supply might help. Also, I am wondering if there are other sources too. In the meantime, I would like to share an article on the subject that I recently found: Kill Studio Hum and Buzz at the Source.

22:14 February 12, 2014

Applying latest set of updates to LMDE worked to get to Update 8 worked smoothly unlike some predecessors. This brought the latest version of Cinnamon so GNOME now is redundant. It will be interesting to see where things go next.

16:24 February 8, 2014

During the week, I discovered that Twitter is not a benign place to go ruminating. A sharp riposte in an unnecessary tone of voice was enough to bring on a sense of extra caution. Wherever you get humanity, you are likely to encounter and one had a go at me so some thoughts are going to be kept away from there from this point forward. Sometimes, you own website is a far better place to go ponder happenings in the world around you. After all, an ugly comment can be deleted and a rogue IP address blocked if things need to go that far. Of course. more civility would be best. Polite correction is the best course whenever it is warranted since we all are human and no one is beyond making mistakes.

16:15 February 8, 2014

On my outdoors website, I have been using a PHP script from Detect Mobile Browsers but this does not distinguish between Android running on a tablet and that running on a phone. Therefore, I have turned to another source of such scripting and that is working better so far. In fact, this offers more than just PHP but also Python, JavaScript and other scripting languages along with configuration files for web servers too. Apache, Nginx and IIS all have something for them. The logic essentially is based on Perl regular expression matching of user agent strings, not an infallible means but good enough for me along with a smattering of responsive design.

14:30 February 1, 2014

For anyone lost when faced with the changes Microsoft brought in with the launch of Windows 8 and largely retained in Windows 8.1, TechRadar has a useful article: 62 Windows 8 tips, tricks and secrets. What will prove especially interesting is where Microsoft goes next when many of their customers prefer the Windows 7 interface and are sticking with the elderly Windows XP. You only can get so far by telling your customers that they are wrong all of the time and the is competition in the form of Apple’s OS X and Google’s Chrome now.

14:23 February 1, 2014

TechRadar has a round-up of Best free photo editing software: 10 top image editors you should try. Usual options like GIMP, Paint.Net and IrfanView get a mention along with other less well known ones. Interestingly, Google’s Picasa is excluded from the list but that might be because it largely is an image file management tool even if it has some image editing capabilities too.

21:28 January 27, 2014

Late last week, I found out about the image file sorting tool PhotoSift via an article on the software. It looks interesting though I have yet to try it.

17:52 January 27, 2014

Here are some interesting reviews from TechRadar:

Best compact system camera 2014: the top models reviewed

Best tripod and camera support: 13 tested

Best tripod head: 8 reviewed

The tripod heads review really caught my eye more than the others. After all, 2013 was the year that I got a CSC and a Manfrotto tripod has sat reproachingly in the corner far more often than it should.

19:41 January 16, 2014

Today, I spotted two interesting articles to which I want to retain links on here:

Managing the future of complex business and IT landscapes

Send large files to clients with these 8 free tools

Both of these ring bells for me for different reasons. The first is a reminder of a slow and painful system project with which I was involved and of an ineffective IT support service that pained us at the time. The second is ever present in my current job with its need to send data and output files to clients as well as receiving specifications from them.

19:36 January 4, 2014

In recent weeks, I have been having trouble with the onboard network controller on a spare PC that I have at home. It connects to the network fine for a few minutes and then struggles. Making use of an old PCI ethernet card that I had from another machine solved the problem. Does anyone know of issues with ASRock motherboards and onboard network ports at all? It isn’t something that I have seen before and this motherboard never had good networking capability as long as I have had it.

19:33 January 4, 2014

After Christmas, I took delivery of an HTC One mini mobile phone that I got free as part of a contract renewal with O2. It also is known as the M4 and I have been getting used to it since I got it. A lot is familiar and there are some little differences too. Some of these leave me asking why what worked well before got changed to something that is less smooth. Of course, that can be the course of things and it applies to buying a new car as much as getting a phone upgrade. All in all, the phone works well and battery life appears much improved over the HTC Desire S so far, never a bad thing to notice.

19:25 January 4, 2014

This morning, the hosting provider for this website had an outage that lasted over three hours. The provider was Fasthosts and the cause was a power failure. They usually are good so this thankfully does not happen too often. However, we have been getting a lot of stormy weather crossing Britain and Ireland this winter so I suspect that there should be little in the way of surprise when something like this happens. Weather is not due to settle during this month so there may be more power failures, hopefully elsewhere, before things settle down again.

17:20 January 3, 2014

On one WordPress website that I have, the refresh rate for RSS widgets wasn’t the quickest and the remedy was to add this line into the themes functions.php file:

add_filter( ‘wp_feed_cache_transient_lifetime’, create_function(‘$a’, ‘return 600;’) );

It creates a custom function that is attached to the widget and the refresh time is set to 600 seconds or 10 minutes. So far, this seems to be doing what I needed.

17:56 December 19, 2013

What I didn’t realise is that TRIM currently is not enabled in Ubuntu by default. That is set to change in Ubuntu 14.04 and here is some advice on the matter until then.

20:41 December 14, 2013

This weekend, I had visions of needing a new hard drive when all files on one in my main home PC (runs Ubuntu GNOME 13.10 64-bit) went read only. The cure was to re-seat the SATA cables and all was well again. Sometimes, inexpensive remedies are best and I need not to forget this one.

20:54 October 29, 2013

Here are two interesting articles that I spotted: the first is on new features in GNOME 3.10  and the second about getting DRM-protected Flash media playing on Ubuntu 13.10. For now, I am sticking with Ubuntu GNOME 13.04 in spite of a pop-up dialogue encouraging an upgrade to 13.10; the potential for even a little disruption is something that I am delaying for now.

20:34 October 16, 2013

While editing a file in Nano on an virtual Arch Linux web server that I have, I noticed that a file had DOS newline characters instead of UNIX ones so conversion using the dos2unix command was in order. There is more on this to be found on nixCraft and there are other options such as sed described in there too.

21:51 September 7, 2013

Following a look at Webmin, I have to say that it seems a worthy tool for remote management of servers. My trial so far has been on my Ubuntu virtual web server and it works on port 10000 without interfering with the operation of the actual web server. Being able to run system updates and deletion of MySQL databases without resorting to the command will seem a bonus for some. There’s more to it than these though and I have seen the possibility of managing virtual servers located within a real being mooted. It was an issue of Linux User & Developer than inspired me so my Linux magazine reading is seeing its uses.

20:30 September 4, 2013

Here are some interesting articles for anyone thinking about software development and its realities:

The care and feeding of software engineers (or, why engineers are grumpy)

Being an introvert as I am, this article really is something to which I can relate. Whenever I cannot get the space for undisturbed work, it takes from how I enjoy my job.

How designers and engineers can play nice (and still run with scissors)

We all have to work cross-functionally so you cannot have it all your own way…

Six reasons why the NHS National Programme for IT failed

Having been involved in system design, development and implementation myself, I have something to share that fits into the same topic area. Too many cooks can spoil a broth.

Queensland Government Bans IBM from IT Contracts

My past experiences of IBM have not been good and it wasn’t just where I worked either so this is not exactly a surprise. Service organisations need to ensure that they are sufficient responsive and flexible with empowered and enthusiastic staff who do the needful.

23:09 August 11, 2013

Vagrant and Puppet look like very interesting tools for working with virtual machines. They work with VirtualBox or VMware’s Fusion and Workstation so there’s a choice of virtualisation tool.

20:52 April 18, 2013

Crash reports have been appearing after logging into an Ubuntu session for /usr/share/hplip/config_usb_printer.py and it repeating has been reinstalling HPLIP software for my HP LaserJet 1018 printer too. Leaving the printer off until I need it would be one solution and saves some electricity too but it is best to try to sort an issue when you keep getting it. The first step was to download the latest HP software and install it. That wasn’t a complete solution so I altered the latest send_message function call in /usr/share/hplip/config_usb_printer.py from the following:

send_message( device_uri, printer_name, EVENT_DIAGNOSE_PRINTQUEUE, username, 0,”)

to:

send_message( device_uri, printer_name, EVENT_DIAGNOSE_PRINTQUEUE, ”, 0,”)

So far that alteration appears to have addressed the problem but I’ll be keeping an eye on things anyway. If you’re wondering, the inspiration came from a bug discussion on Launchpad and it was the queue clearing section of the Python script that I went and edited.

20:40 April 16, 2013

Recently, I have been having bother with WordPress Jetpack comment form submission. This was caused by the Bad Behaviour plugin and allowing cross site form submission sorted the problem. The setting to change is in Settings > Bad Behaviour on the Dashboard.

17:31 March 16, 2013

Here’s a quick way to make Faenza and Faience icons available to Ubuntu and maybe Linux Mint too:

sudo add-apt-repository ppa:tiheum/equinox
sudo apt-get update && sudo apt-get install faenza-icon-theme faience-*

20:53 February 19, 2013

During a look at a Fedora 18 Live DVD, I found a user name was needed to get to the desktop and root did the trick for me. What I didn’t notice was an install to hard drive option for the GNOME variant that I tried. Maybe it was hidden on the desktop and not displayed. If so, it looks like an oversight.

16:02 February 14, 2013

Here’s the way to find the version of PROC CDISC that came with the version of SAS that you are using:

proc cdisc version;
run;

14:00 February 14, 2013

Here’s robustness principal for software design that otherwise is known as Postel’s Law after TCP pioneer Jon Postel:

Be conservative in what you do, be liberal in what you accept from others

08:10 February 14, 2013

Here’s a command for removal of orphaned packages in Arch Linux and its derivatives (CinnArch and ArchBang come to mind but there may be others):

sudo pacman -Rns $(pacman -Qqtd)

15:11 January 26, 2013

Cinnarch looks very interesting. It’s based on Arch Linux so it’s a rolling distro but has Cinnamon as its desktop environment. Currently, it’s still in beta but I am tempted to give it a go in a virtual machine.

20:55 December 15, 2012

Having decided that my ever sluggish system needed a fresh operating system installation, I set to trying to get on Linux Mint 14. However, not remembering that the disk and not the partition needs specifying for GRUB installation cost me some time. Later, adding on GNOME Shell resulted in a system conflict between MDM and GDM so I now am running Ubuntu GNOME Remix instead. All feels fresher so far though a spot bother was had with the lock screen that caused me to turn off the feature. VMware Player installed without any of the trickery needed to get in its forbear and runs without a hitch so far too. Other bits and pieces need instating yet but the basis of a refreshed computing platform is in place now.

20:56 November 19, 2012

A look at Linux Mint 14 64-bit release candidate in a VirtualBox virtual machine confronted me with irritating mouse pointer behaviour. The pointer constantly darts to the left when you need it not to do that and it seriously affects usability. The final version will be awaited to see if there is an improvement because it’s not very usable as things stand. GNOME Shell can be installed in working order after a spot of fiddling. Installing the software from the Software Store doesn’t add gnome-session as well so the command line alternative remains best:

sudo apt-get install gnome-shell && sudo apt-get install gnome-session

These two really need packaging together as dependencies. Cinnamon is looking as nice as ever and in need of a plug-in that makes virtual desktops behave as they do in GNOME, even if that’s a minority interest now.

12:07 September 30, 2012

Here are commands for adding Cinnamon to Ubuntu:

sudo add-apt-repository ppa:gwendal-lebihan-dev/cinnamon-stable
sudo apt-get update
sudo apt-get install cinnamon

14:39 September 29, 2012

Had a look at GNOME 3.6 in Ubuntu GNOME Remix 12.10 Beta 1 release. Not all extensions are supported yet but GNOME 3.6 only launched officially yesterday anyway. Will take a little while for those extension developers to catch up with it. No hurry in moving from GNOME 3.4 until they do so.

20:24 September 22, 2012

Picked up Netgear ethernet switcher at PC World today. Working without a hitch so far. Some network reorganisation may follow suit.

20:14 September 22, 2012

Initially, I needed to use the command “modprobe vboxdrv” to get VirtualBox going on Sabayon 10. However, there seems to be a better remedy: adding the line ‘modules=”vboxdrv vboxnetflt vboxnetadp”‘ (removing the outer single quotes, by the way) to /etc/conf.d/modules and restarting the system. That seems to have done the trick though I wonder it wasn’t added for me automatically.

13:08 September 22, 2012

Until recently, I hadn’t realised that most if not all SSD’s come in 2.5″ form factor. An extra bracket is needed for installing into 3.5″ drive bays. While tempting, this remains a nice to have upgrade for me.

20:02 September 21, 2012

Found out why my proftpd daemon wasn’t working on Linux Mint. Needed to set it as standalone and not inetd operation. It’s the ServerType setting in /etc/proftpd/proftpd.conf.

21:53 September 18, 2012

Given the site a new appearance. The cause was getting microblogging going on this page. Clashes with zeeDisplay theme and Twitter Tools made for replacements that now power what you see here. Jetpack plugin added too. All looking good to my eyes so far. More tinkering may happen yet.

21:36 September 15, 2012

Here are a few places where you will find Linux version information stored: /etc/issue, /etc/issue.net, /etc/lsb-release.

17:30 September 15, 2012

Desktop swapping can be done in Ubuntu and here’s the command for Xubuntu:

sudo apt-get install xubuntu-desktop

17:22 September 15, 2012

Here’s a set of commands that I once used to get GNOME Shell going for a Sabayon 9 installation in a VirtualBox virtual machine:

su
equo install --ask linux-sources
cd /run/media/john/VBOXADDITIONS_4.1.16_78094
./VBoxLinuxAdditions.run
mv /usr/libexec/gnome-session-check-accelerated-helper /usr/libexec/gnome-session-check-accelerated-helper.bak
ln -s /bin/true /usr/libexec/gnome-session-check-accelerated-helper

Hope they have a use though VirtualBox has gone through a few versions since I discovered that these had the desired effect though the login screen behaved a little oddly. Otherwise, everything worked as it should.

14:16 September 15, 2012

Pondering purchase of NAS. QNAP TS-412 looking promising but need to think about my home networking set up first. Might need an ethernet switch but plan to look into it more first, especially with uplink capability needed.

14:11 September 15, 2012

Appearance of Sabayon 10 caused a bit of disturbance to my Sabayon installation that needed installation from a DVD to resolve. Tried GRUB repairs before the non-loading of an Nvidia kernel module caused bother. Went for old fashioned approach for sake of saving a little troubleshooting time.

13:52 September 15, 2012

This has been added using the Live Blogging plugin and it’s good for pages too, unlike Automattic’s own Liveblog plugin. Maybe they’ll add that sort of functionality in time.

Using PowerShell to reinstall Windows Apps

9th September 2016

Recently, I managed to use 10AppsManager to remove most of the in-built apps from a Windows 10 virtual machine that I have for testing development versions in case anything ugly were to appear in a production update. Curiosity is my excuse for letting the tool do what it did and some could do with restoration. Out of the lot, Windows Store is the main one that I have sorted so far.

The first step of the process was to start up PowerShell in administrator mode. On my system, this is as simple as clicking on the relevant item in the menu popped up by right clicking on the Start Menu button and clicking on the Yes button in the dialogue box that appears afterwards. In your case, it might be a case of right clicking on the appropriate Start Menu programs entry, selecting the administrator option and going from there.

With this PowerShell session open, the first command to issue is the following:

Get-Appxpackage -Allusers > c:\temp\appxpackage.txt

This creates a listing of Windows app information and pops it into a text file in your choice of directory. Opening the text file in Notepad allows you to search it more easily and there is an entry for Windows Store:

Name                   : Microsoft.WindowsStore
Publisher              : CN=Microsoft Corporation, O=Microsoft Corporation, L=Redmond, S=Washington, C=US
Architecture           : X64
ResourceId             :
Version                : 11607.1001.32.0
PackageFullName        : Microsoft.WindowsStore_11607.1001.32.0_x64__8wekyb3d8bbwe
InstallLocation        : C:\Program Files\WindowsApps\Microsoft.WindowsStore_11607.1001.32.0_x64__8wekyb3d8bbwe
IsFramework            : False
PackageFamilyName      : Microsoft.WindowsStore_8wekyb3d8bbwe
PublisherId            : 8wekyb3d8bbwe
PackageUserInformation : {S-1-5-21-3224249330-198124288-2558179248-1001
IsResourcePackage      : False
IsBundle               : False
IsDevelopmentMode      : False
Dependencies           : {Microsoft.VCLibs.140.00_14.0.24123.0_x64__8wekyb3d8bbwe,
Microsoft.NET.Native.Framework.1.3_1.3.24201.0_x64__8wekyb3d8bbwe,
Microsoft.NET.Native.Runtime.1.3_1.3.23901.0_x64__8wekyb3d8bbwe,
Microsoft.WindowsStore_11607.1001.32.0_neutral_split.scale-100_8wekyb3d8bbwe}

Using the information from the InstallLocation field, the following command can be built and executed (here, it has gone over several lines so you need to get your version onto a single one):

Add-AppxPackage -register “C:\Program Files\WindowsApps\Microsoft.WindowsStore_11607.1001.32.0_x64__8wekyb3d8bbwe\AppxManifest.xml” -DisableDevelopmentMode

Once the above has completed, the app was installed and ready to use again. As the mood took me, I installed other apps from the Windows Store as I saw fit.

Uses for symbolic links

24th April 2007

UNIX (and Linux) does a wonderful trick with its file and folder shortcuts; it effectively treats them as file and folder transporters that transfer associate a file or folder that exists in one folder hierarchy with another and it is treated as if it exists in that hierarchy too. For example, the images folder under /www/htdocs/blog can have a link under /www/htdocs/ that makes it appear that its contents exist in both places without any file duplication. For instance, the pwd command cannot tell a folder from a folder shortcut. To achieve this, I use what are called symbolic links and the following command achieves the outcome in the example:

ln -s /www/htdocs/blog/images /www/htdocs/images

The first file path is the destination for the link while the second one is that for the link itself. I had a problem with Google Reader not showing up images in its feed displays so symbolic links rode to the rescue as they did for resolve a similar conundrum that I was encountering when editing posts in my hillwalking blog.

Ricoh Caplio GX100?

14th June 2007

Ricoh Caplio GX100

Because my digital SLR has needed to be sent away for cleaning for a while now (in the meantime I have got good at using Photoshop Elements to clean up up pictures…), I have been on the lookout for a backup camera so that I can add photos to any trip reports on my hillwalking blog without having to wait for film to be processed. Previously, my eye was on Ricoh’s GR Digital but they have now introduced the award-winning Caplio GX100. The zoom range is a very useful 24-72 mm in 35 mm film terms and that removable electronic viewfinder looks very neat. Having a 10 megapixel sensor adds to the appeal and advanced exposure modes like manual and aperture priority. The feature list has almost ensured its ousting of the GR Digital from any wish list that I might have; the only thing outstanding is seeing how it performs in a photography magazine’s full test review. A thumbs up from there might even get me onto the acquisition trail…

AttributeError: module ‘PIL’ has no attribute ‘Image’

11th March 2024

One of my websites has an online photo gallery. This has been a long-term activity that has taken several forms over the years. Once HTML and JavaScript based, it then was powered by Perl before PHP and MySQL came along to take things from there.

While that remains how it works, the publishing side of things has used its own selection of mechanisms over the same time span. Perl and XML were the backbone until Python and Markdown took over. There was a time when ImageMagick and GraphicsMagick handled image processing, but Python now does that as well.

That was when the error message gracing the title of this post came to my notice. Everything was working well when executed in Spyder, but the message appears when I tried running things using Python on the command line. PIL is the abbreviated name for the Python 3 pillow package; there was one called PIL in the Python 2 days.

For me, pillow loads, resizes and creates new images, which is handy for adding borders and copyright/source information to each image as well as creating thumbnails. All this happens in memory and that makes everything go quickly, much faster than disk-based tools like ImageMagick and GraphicsMagick.

Of course, nothing is going to happen if the package cannot be loaded, and that is what the error message is about. Linux is what I mainly use, so that is the context for this scenario. What I was doing was something like the following in the Python script:

import PIL

Then, I referred to PIL.Image when I needed it, and this could not be found when the script was run from the command line (BASH). The solution was to add something like the following:

from PIL import Image

That sorted it, and I must have run into trouble with PIL.ImageFilter too, since I now load it in the same manner. In both cases, I could just refer to Image or ImageFilter as I required and without the dot syntax. However, you need to make sure that there is no clash with anything in another loaded Python package when doing this.

Relocating the Apache web server document root directory in Fedora 12

9th April 2010

So as not to deface anything that is available online on the web, I have a tendency to set up an offline Apache server on a home PC to do any tinkering away from the eyes of the unsuspecting public. Though Ubuntu is my mainstay for home computing, I do have a PC with Fedora installed and I have been trying to get an Apache instance starting automatically on there without success for a few months. While I can start it by running the following command as root, I’d rather not have more manual steps than is necessary.

httpd -k start

The command used by the system when it starts is different and, even when manually run as root, it failed with messages saying that it couldn’t find the directory while the web server files are stored. Here it is:

service httpd start

The default document root location on any Linux distribution that I have seen is /var/www and all is very well with this but it isn’t a safe place to leave things if ever a re-installation is needed. Having needed to wipe /var after having it on a separate disk or partition for the sake of one installation, it doesn’t look so persistent to me. In contrast, you can safeguard /home by having it on another disk or in a dedicated partition and it can be retained even when you change the distro that you’re using. Thus, I have got into the habit of having the root of the web server document root folder in my home area and that is where I have been seeing the problem.

Because of the access message, I tried using chmod and chgrp but to no avail. The remedy has to do with reassigning the security contexts used by SELinux. In Fedora, Apache will not work with the context user_home_t that is usually associated with home directories but needs httpd_sys_content_t instead. To find out what contexts are associated with particular folders, issue the following command:

ls -Z

The final solution was to create a user account whose home directory hosts the root of the web server file system, called www in my case. Then, I executed the following command as root to get things going:

chcon -R -h -t httpd_sys_content_t /home/www

It seems that even the root of the home directory has to have an appropriate security context (/home has home_root_t so that might do the needful too). Without that, nothing will work even if all is well at the next level down. The switches for chcon command translate as follows:

-R : recursive; applies changes to all files and folders within a directory.

-h : changes apply only to symbolic links and not to where they refer in the file system.

-t : alters context type.

It took a while for all of this stuff about SELinux security contexts to percolate through to the point where I was able to solve the problem. A spot of further inspiration was needed too and even guided my search for the information that I needed. It’s well worth trying Linux Home Networking if you need more information. There are references to an earlier release of Fedora but the content still applies to later versions of Fedora right up to the current release if my experience is typical.

Installing FreeBSD in a VirtualBox Virtual Machine

2nd March 2014

With UNIX being the basis of Linux, I have a soft spot for trying out any UNIX that can be installed on a PC. For a while, I had OpenSolaris on the go and even vaguely recall having a look at one of the BSD’s. However, any recent attempt to install one of the latter, and there are quite a few around now, got stymied by some sort of kernel panic caused by using AMD CPU’s. With the return to the Intel fold arising from the upgrade of my main home PC last year, it perhaps was time to try again.

The recent release of FreeBSD 10.0 was the cue and I downloaded a DVD image for a test installation in a VirtualBox virtual machine with 4 GB of memory and a 32 GB virtual hard drive attached (expanding storage was chosen so not all the allocated space has been taken so far). The variant of FreeBSD chosen was the 64-bit x86 one and I set to installing it in there. Though not as pretty in appearance as those in various Linux distros, the installer was not that user unfriendly to me. Mind you, I have experience of installing Arch Linux so that might have acclimatised me somewhat.

Those installation screens ask about the keyboard mapping that you want and I successfully chose one of the UK options. There was limited opportunity for adding extras though there was a short list of few from which I made some selections. User account set up also was on offer and I would have been better off knowing what groups to assign for my personal user account so as to have to avoid needing to log in as root so often following system start up later. Otherwise, all the default options were sufficient.

When the installation process was complete, it was time to boot into the new system and all that was on offer was a command line log in session. After logging in as root, it was time to press pkg into service in order to get a desktop environment in place. The first step was to install X:

pkg install xorg

Then, it was time to install a desktop environment. While using XFCE or KDE were alternatives, I chose GNOME 2 due to familiarity and more extensive instructions on the corresponding FreeBSD handbook page. Issuing the following command added GNOME and all its helper applications:

pkg install gnome2

So that GNOME starts up at the next reboot, some extra steps are needed. The first of these is to add the following line into /etc/fstab:

proc /proc procfs rw 0 0

Then, two lines were needed in /etc/rc.conf:

gdm_enable=”YES”
gnome_enable=”YES”

The first enables the GNOME display manager and the second activates other GNOME programs that are needed for a desktop session to start. With each of these in place, I got a graphical login screen at the next boot time.

With FreeDSB being a VirtualBox Guest, it was time to consult the relevant FreeBSD manual page. Here, there are sections for a number of virtual machine tools so a search was needed to find the one for VirtualBox. VirtualBox support for FreeBSD is incomplete in that there is no installation media for BSD systems though Linux and Solaris are supported along with Windows. Therefore, it is over to the FreeBSD repositories for the required software:

pkg install virtualbox-ose-additions

Aside from the virtual machine session not capturing and releasing the mouse pointer automatically, that did everything that was needed even if it was the open source edition of the drivers and their proprietary equivalents. To resolve the mouse pointer issue, I needed to temporarily disable the GNOME desktop session in /etc/rc.conf to drop down to a console only session where xorg. conf could be generated using the following commands:

Xorg -configure
cp xorg.conf.new /etc/xorg.conf

In the new xorg.conf file, the mouse section needs to be as follows:

Section “InputDevice”
Identifier  “Mouse0”
Driver      “vboxmouse”
EndSection

If it doesn’t look like the above and it wasn’t the case for me then it needs changing. Also, any extra lines from the default set up also need removing or the mouse will not function as it should. The ALT+F1 (for accessing GNOME menus) and ALT+F2 (for running commands) keyboard shortcuts then become crucial when your mouse is not working as it should and could avert a panic too; knowing that adjusting a single configuration file will fix a problem when doing so is less accessible is not a good feeling as I discovered to my own cost. The graphics settings were fine by default but here’s what you should have in case it isn’t for you:

Section “Device”
### Available Driver options are:-
### Values: <i>: integer, <f>: float, <bool>: “True”/”False”,
### <string>: “String”, <freq>: “<f> Hz/kHz/MHz”
### [arg]: arg optional
Identifier  “Card0”
Driver      “vboxvideo”
VendorName  “InnoTek Systemberatung GmbH”
BoardName   “VirtualBox Graphics Adapter”
BusID       “PCI:0:2:0”
EndSection

The next step is to ensure that your HAL settings are as they should. I needed to create a file in /usr/local/etc/hal/fdi/policy called 90-vboxguest.fdi that contains the following:

<?xml version=”1.0″ encoding=”utf-8″?>
<!--
# Sun VirtualBox
# Hal driver description for the vboxmouse driver
# $Id: chapter.xml,v 1.33 2012-03-17 04:53:52 eadler Exp $
Copyright (C) 2008-2009 Sun Microsystems, Inc.
This file is part of VirtualBox Open Source Edition (OSE, as
available from http://www.virtualbox.org. This file is free software;
you can redistribute it and/or modify it under the terms of the GNU
General Public License (GPL) as published by the Free Software
Foundation, in version 2 as it comes in the “COPYING” file of the
VirtualBox OSE distribution. VirtualBox OSE is distributed in the
hope that it will be useful, but WITHOUT ANY WARRANTY of any kind.
Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa
Clara, CA 95054 USA or visit http://www.sun.com if you need
additional information or have any questions.
-->
<deviceinfo version=”0.2″>
<device>
<match key=”info.subsystem” string=”pci”>
<match key=”info.product” string=”VirtualBox guest Service”>
<append key=”info.capabilities” type=”strlist”>input</append>
<append key=”info.capabilities” type=”strlist”>input.mouse</append>
<merge key=”input.x11_driver” type=”string”>vboxmouse</merge>
<merge key=”input.device” type=”string”>/dev/vboxguest</merge>
</match>
</match>
</device>
</deviceinfo>

With all that set, it is time to ensure that the custom user account is added to the wheel and operator groups using this command:

pw user mod [user name] -G wheel operator

Executing the above as root means that the custom account can run the su command so that logging in as root at the start of a desktop session no longer is needed. That is what being in the wheel group allows and the anyone in the operator group can shut down or restart the system. Both are facilities readily available in Linux so I fancied having them in FreeBSD too.

Being able to switch to root in a terminal session meant that I could go on to add software like Firefox, Libreoffice, GIMP, EMACS, Geany, Netbeans, Banshee and so on. There may be a line of opinion that FreeBSD is a server operating system but all of these make it more than passable for serving as a desktop one too. There may be no package management GUI as such and the ones that come with GNOME do not work either but anyone familiar with command line working will get around that.

FreeBSD may be conservative but that has its place too and being able to build up a system one item at a time teaches far more than getting everything already sorted in one hit. So far, there is enough documentation to get me going and I hope to see where else things go too. So far, the OS hasn’t been that intimidating and that’s good to see.

Upgrading from Windows 7 to Windows 8 in a VMWare Virtual Machine

1st November 2012

Though my main home PC runs Linux Mint, I do like to have the facility to use Windows software from time to time and virtualisation has allowed me to continue doing that. For a good while, it was a Windows 7 guest within a VirtualBox virtual machine and, before that, one running Windows XP fulfilled the same role. However, it did feel as if things were running slower in VirtualBox than once might have been the case and I jumped ship to VMware Player. It may be proprietary and closed source but it is free of charge and has been doing what was needed. A subsequent recent upgrade of video driver on the host operating system allowed the enabling of a better graphical environment in the Windows 7 guest.

Instability

However, there were issues with stability and I lost the ability to flit from the VM window to the Linux desktop at will with the system freezing on me and needing a reboot. Working in Windows 7 using full screen mode avoided this but it did feel as I was constrained to working in a Windows machine whenever I did so. The graphics performance was imperfect too with screening refreshing being very blocky with some momentary scrambling whenever I opened the Start menu. Others would not have been as patient with that as I was though there was the matter of an expensive Photoshop licence to be guarded too.

In hindsight, a bit of pruning could have helped. An example would have been driver housekeeping in the form of removing VirtualBox Guest Additions because they could have been conflicting with their VMware counterparts. For some reason, those thoughts entered my mind and I was pondering another more expensive option instead.

Considering NAS & Windows/Linux Networking

That would have taken the form of setting aside a PC for running Windows 7 and having a NAS for sharing files between it and my Linux system. In fact, I did get to exploring what a four bay QNAP TS-412 would offer me and realised that you cannot put normal desktop hard drives into devices like that. For a while, it looked as if it would be a matter of getting drives bundled with the device or acquiring enterprise grade disks so as to main the required continuity of operation. The final edition of PC Plus highlighted another one though: the Western Digital Red range. These are part way been desktop and enterprise classifications and have been developed in association with NAS makers too.

Looking at the NAS option certainly became an education but it has exited any sort of wish list that I have. After all, there is the cost of such a setup and it’s enough to get me asking if I really need such a thing. The purchase of a Netgear FS 605 ethernet switch would have helped incorporate it but there has been no trouble sorting alternative uses for it since it bumps up the number of networked devices that I can have, never a bad capability to have. As I was to find, there was a less expensive alternative that became sufficient for my needs.

In-situ Windows 8 Upgrade

Microsoft have been making available evaluation copies of Windows 8 Enterprise that last for 90 days before expiring. One is in my hands has been running faultlessly in a VMware virtual machine for the past few weeks. That made me wonder if upgrading from Windows 7 to Windows 8 help with my main Windows VM problems. Being a curious risk-taking type I decided to answer the question for myself using the £24.99 Windows Pro upgrade offer that Microsoft have been running for those not needing a disk up front; they need to pay £49.99 but you can get one afterwards for an extra £12.99 and £3.49 postage if you wish, a slightly cheaper option. There also was a time cost in that it occupied a lot of a weekend on me but it seems to have done what was needed so it was worth the outlay.

Given the element of risk, Photoshop was deactivated to be on the safe side. That wasn’t the only pre-upgrade action that was needed because the Windows 8 Pro 32-bit upgrade needs at least 16 GB before it will proceed. Of course, there was the matter of downloading the installer from the Microsoft website too. This took care of system evaluation and paying for the software as well as the actual upgrade itself.

The installation took a few hours with virtual machine reboots along the way. Naturally, the licence key was needed too as well as the selection of a few options though there weren’t many of these. Being able to carry over settings from the pre-exisiting Windows 7 instance certainly helped with this and with making the process smoother too. No software needed reinstatement and it doesn’t feel as if the system has forgotten very much at all, a successful outcome.

Post-upgrade Actions

Just because I had a working Windows 8 instance didn’t mean that there wasn’t more to be done. In fact, it was the post-upgrade sorting that took up more time than the actual installation. For one thing, my digital mapping software wouldn’t work without .Net Framework 3.5 and turning on the operating system feature form the Control Panel fell over at the point where it was being downloaded from the Microsoft Update website. Even removing Avira Internet Security after updating it to the latest version had no effect and it was a finding during the Windows 8 system evaluation process. The solution was to mount the Windows 8 Enterprise ISO installation image that I had and issue the following command from a command prompt running with administrative privileges (it’s all one line though that’s wrapped here):

dism.exe /online /enable-feature /featurename:NetFX3 /Source:d:\sources\sxs /LimitAccess

For sake of assurance regarding compatibility, Avira has been replaced with Trend Micro Titanium Internet Security. The Avira licence won’t go to waste since I have another another home in mind for it. Removing Avira without crashing Windows 8 proved impossible though and necessitating booting Windows 8 into Safe Mode. Because of much faster startup times, that cannot be achieved with a key press at the appropriate moment because the time window is too short now. One solution is to set the Safe Boot tickbox in the Boot tab of Msconfig (or System Configuration as it otherwise calls itself) before the machine is restarted. There may be others but this was the one that I used. With Avira removed, clearing the same setting and rebooting restored normal service.

Dealing with a Dual Personality

One observer has stated that Windows 8 gives you two operating systems for the price of one: the one in the Start screen and the one on the desktop. Having got to wanting to work with one at a time, I decided to make some adjustments. Adding Classic Shell got me back a Start menu and I left out the Windows Explorer (or File Explorer as it is known in Windows 8) and Internet Explorer components. Though Classic Shell will present a desktop like what we have been getting from Windows 7 by sweeping the Start screen out of the way for you, I found that this wasn’t quick enough for my liking so I added Skip Metro Suite to do this and it seemed to do that a little faster. The tool does more than sweeping the Start screen out of the way but I have switched off these functions. Classic Shell also has been configured so the Start screen can be accessed with a press of Windows key but you can have it as you wish. It has updated too so that boot into the desktop should be faster now. As for me, I’ll leave things as they are for now. Even the possibility of using Windows’ own functionality to go directly to the traditional desktop will be left untested while things are left to settle. Tinkering can need a break.

Outcome

After all that effort, I now have a seemingly more stable Windows virtual machine running Windows 8. Flitting between it and other Linux desktop applications has not caused a system freeze so far and that was the result that I wanted. There now is no need to consider having separate Windows and Linux PC’s with a NAS for sharing files between them so that option is well off my wish-list. There are better uses for my money.

Not everyone has had my experience though because I saw a report that one user failed to update a physical machine to Windows 8 and installed Ubuntu instead; they were a Linux user anyway even if they used Fedora more than Ubuntu. It is possible to roll back from Windows 8 to the previous version of Windows because there is a windows.old directory left primarily for that purpose. However, that may not help you if you have a partially operating system that doesn’t allow you to do just that. In time, I’ll remove it using the Disk Clean-up utility by asking it to remove previous Windows installations or running File Explorer with administrator privileges. Somehow, the former approach sounds the safer.

What About Installing Afresh?

While there was a time when I went solely for upgrades when moving from one version of Windows to the next, the annoyance of the process got to me. If I had known that installing the upgrade twice onto a computer with a clean disk would suffice, it would have saved me a lot. Staring from Windows 95 (from the days when you got a full installation disk with a PC and not the rescue media that we get now) and moving through a sequence of successors not only was time consuming but it also revealed the limitations of the first in the series when it came to supporting more recent hardware. It was enough to have me buying the full retailed editions of Windows XP and Windows 7 when they were released; the latter got downloaded directly from Microsoft. These were retail versions that you could move from one computer to another but Windows 8 will not be like that. In fact, you will need to get its System Builder edition from a reseller and that can only be used on one machine. It is the merging of the former retail and OEM product offerings.

What I have been reading is that the market for full retail versions of Windows was not a big one anyway. However, it was how I used to work as you have read above and it does give you a fresh system. Most probably get Windows with a new PC and don’t go building them from scratch like I have done for more than a decade. Maybe the System Builder version would apply to me anyway and it appears to be intended for virtual machine use as well as on physical ones. More care will be needed with those licences by the looks of things and I wonder what needs not to be changed so as not to invalidate a licence. After all, making a mistake might cost between £75 and £120 depending on the edition.

Final Thoughts

So far Windows 8 is treating me well and I have managed to bend to my will too, always a good thing to be able to say. In time, it might be that a System Builder copy could need buying yet but I’ll leave well alone for now. Though I needed new security software, the upgrade still saved me money over a hardware solution to my home computing needs and I have a backup disk on order from Microsoft too. That I have had to spend some time settling things was a means of learning new things for me but others may not be so patient and, with Windows 7 working well enough for most, you have to ask if it’s only curious folk like me who are taking the plunge. Still, the dramatic change has re-energised the PC world in an era when smartphones and tablets have made so much of the running recently. That too is no bad thing because an unchanging technology is one that dies and there are times when big changes are needed, as much as they upset some folk. For Microsoft, this looks like one of them and it’ll be interesting to see where things go from here for PC technology.

  • All the views that you find expressed on here in postings and articles are mine alone and not those of any organisation with which I have any association, through work or otherwise. As regards editorial policy, whatever appears here is entirely of my own choice and not that of any other person or organisation.

  • Please note that everything you find here is copyrighted material. The content may be available to read without charge and without advertising but it is not to be reproduced without attribution. As it happens, a number of the images are sourced from stock libraries like iStockPhoto so they certainly are not for abstraction.

  • With regards to any comments left on the site, I expect them to be civil in tone of voice and reserve the right to reject any that are either inappropriate or irrelevant. Comment review is subject to automated processing as well as manual inspection but whatever is said is the sole responsibility of the individual contributor.